/**
 * constantRoutes
 * a base page that does not have permission requirements
 * all roles can be accessed
 */
export const routers2 = [
    /*{
        children: [],
        component: '/src/views/backend/dashboard.vue',
        meta: {
            icon: 'fa fa-dashboard',
            keepalive: 'dashboard',
            menu_type: 'tab',
            title: '控制台',
            type: 'menu',
        },
        name: 'dashboard',
        path: '/admin/dashboard',
    },*/
]

export const routers = [
    {
        component: '/src/views/backend/dashboard.vue',
        name: 'dashboard',
        path: '/admin/dashboard',
        meta: {
            icon: 'fa fa-dashboard',
            keepalive: 'dashboard',
            menu_type: 'tab',
            title: '控制台',
            type: 'menu',
        },
        children: [
            {
                component: '',
                name: 'dashboard/index',
                path: '/admin/',
                meta: {
                    icon: '',
                    keepalive: 0,
                    menu_type: null,
                    title: '查看',
                    type: 'button',
                },
            },
        ],
    },
    {
        component: '',
        name: 'auth',
        path: '/admin/auth',
        meta: {
            icon: 'fa fa-group',
            keepalive: 0,
            menu_type: null,
            title: '权限管理',
            type: 'menu_dir'
        },
        children: [
            {
                component: '/src/views/backend/auth/group/index.vue',
                name: 'auth/group',
                path: '/admin/auth/group',
                meta: {
                    icon: 'fa fa-group',
                    keepalive: 'auth/group',
                    menu_type: 'tab',
                    title: '角色组管理',
                    type: 'menu',
                },
                children: [
                    {
                        component: '',
                        name: 'auth/group/index',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '查看',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'auth/group/add',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '添加',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'auth/group/edit',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '编辑',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'auth/group/del',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '删除',
                            type: 'button',
                        },
                    }
                ]
            },
            {
                component: '/src/views/backend/auth/admin/index.vue',
                name: 'auth/admin',
                path: '/admin/auth/admin',
                meta: {
                    icon: 'el-icon-UserFilled',
                    keepalive: 'auth/admin',
                    menu_type: 'tab',
                    title: '管理员管理',
                    type: 'menu',
                },
                children: [
                    {
                        component: '',
                        name: 'auth/admin/index',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '查看',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'auth/admin/add',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '添加',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'auth/admin/edit',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '编辑',
                        },
                    },
                    {
                        component: '',
                        name: 'auth/admin/del',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '删除',
                            type: 'button',
                        },
                    },
                ],
            },
            {
                component: '/src/views/backend/auth/rule/index.vue',
                name: 'auth/rule',
                path: '/admin/auth/rule',
                meta: {
                    icon: 'el-icon-Grid',
                    keepalive: 'auth/rule',
                    menu_type: 'tab',
                    title: '菜单规则管理',
                    type: 'menu',
                },
                children: [
                    {
                        component: '',
                        name: 'auth/rule/index',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '查看',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'auth/rule/add',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '添加',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'auth/rule/edit',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '编辑',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'auth/rule/del',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '删除',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'auth/rule/sortable',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '快速排序',
                            type: 'button',
                        },
                    },
                ],
            },
            {
                component: '/src/views/backend/auth/adminLog/index.vue',
                name: 'auth/adminLog',
                path: '/admin/auth/adminLog',
                meta: {
                    icon: 'el-icon-List',
                    keepalive: 'auth/adminLog',
                    menu_type: 'tab',
                    title: '管理员日志管理',
                    type: 'menu',
                },
                children: [
                    {
                        component: '',
                        name: 'auth/adminLog/index',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '查看',
                            type: 'button',
                        },
                    },
                ],
            },
        ],
    },
    {
        component: '',
        name: 'user',
        path: '/admin/user',
        meta: {
            icon: 'fa fa-drivers-license',
            keepalive: 0,
            menu_type: null,
            title: '会员管理',
            type: 'menu_dir',
        },
        children: [
            {
                component: '/src/views/backend/user/user/index.vue',
                name: 'user/user',
                path: '/admin/user/user',
                meta: {
                    icon: 'fa fa-user',
                    keepalive: 'user/user',
                    menu_type: 'tab',
                    title: '会员管理',
                    type: 'menu',
                },
                children: [
                    {
                        component: '',
                        name: 'user/user/index',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '查看',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'user/user/add',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '添加',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'user/user/edit',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '编辑',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'user/user/del',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '删除',
                            type: 'button',
                        },
                    },
                ],
            },
            {
                component: '/src/views/backend/user/group/index.vue',
                name: 'user/group',
                path: '/admin/user/group',
                meta: {
                    icon: 'fa fa-group',
                    keepalive: 'user/group',
                    menu_type: 'tab',
                    title: '会员分组管理',
                    type: 'menu',
                },
                children: [
                    {
                        component: '',
                        name: 'user/group/index',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '查看',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'user/group/add',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '添加',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'user/group/edit',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '编辑',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'user/group/del',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '删除',
                            type: 'button',
                        },
                    }
                ]
            },
            {
                component: '/src/views/backend/user/rule/index.vue',
                name: 'user/rule',
                path: '/admin/user/rule',
                meta: {
                    icon: 'fa fa-th-list',
                    keepalive: 'user/rule',
                    menu_type: 'tab',
                    title: '会员规则管理',
                    type: 'menu',
                },
                children: [
                    {
                        component: '',
                        name: 'user/rule/index',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '查看',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'user/rule/add',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '添加',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'user/rule/edit',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '编辑',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'user/rule/del',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '删除',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'user/rule/sortable',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '快速排序',
                            type: 'button',
                        },
                    },
                ],
            },
            {
                component: '/src/views/backend/user/moneyLog/index.vue',
                name: 'user/moneyLog',
                path: '/admin/user/moneyLog',
                meta: {
                    icon: 'el-icon-Money',
                    keepalive: 'user/moneyLog',
                    menu_type: 'tab',
                    title: '会员余额管理',
                    type: 'menu',
                },
                children: [
                    {
                        component: '',
                        name: 'user/moneyLog/index',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '查看',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'user/moneyLog/add',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '添加',
                            type: 'button',
                        },
                    },
                ],
            },
            {
                component: '/src/views/backend/user/scoreLog/index.vue',
                name: 'user/scoreLog',
                path: '/admin/user/scoreLog',
                meta: {
                    icon: 'el-icon-Discount',
                    keepalive: 'user/scoreLog',
                    menu_type: 'tab',
                    title: '会员积分管理',
                    type: 'menu',
                },
                children: [
                    {
                        component: '',
                        name: 'user/scoreLog/index',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '查看',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'user/scoreLog/add',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '添加',
                            type: 'button',
                        },
                    },
                ],
            },
        ],
    },
    {
        component: '',
        name: 'routine',
        path: '/admin/routine',
        meta: {
            icon: 'fa fa-cogs',
            keepalive: 0,
            menu_type: null,
            title: '常规管理',
            type: 'menu_dir',
        },
        children: [
            {
                component: '/src/views/backend/routine/config/index.vue',
                name: 'routine/config',
                path: '/admin/routine/config',
                meta: {
                    icon: 'el-icon-Tools',
                    keepalive: 'routine/config',
                    menu_type: 'tab',
                    title: '系统配置',
                    type: 'menu',
                },
                children: [
                    {
                        component: '',
                        name: 'routine/config/index',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '查看',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'routine/config/edit',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '编辑',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'routine/config/add',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '添加',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'routine/config/del',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '删除',
                            type: 'button',
                        },
                    },
                ],
            },
            {
                component: '/src/views/backend/routine/attachment/index.vue',
                name: 'routine/attachment',
                path: '/admin/routine/attachment',
                meta: {
                    icon: 'fa fa-folder',
                    keepalive: 'routine/attachment',
                    menu_type: 'tab',
                    title: '附件管理',
                    type: 'menu',
                },
                children: [
                    {
                        component: '',
                        name: 'routine/attachment/index',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '查看',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'routine/attachment/edit',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '编辑',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'routine/attachment/del',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '删除',
                            type: 'button',
                        },
                    },
                ],
            },
            {
                component: '/src/views/backend/routine/adminInfo.vue',
                name: 'routine/adminInfo',
                path: '/admin/routine/adminInfo',
                meta: {
                    icon: 'fa fa-user',
                    keepalive: 'routine/adminInfo',
                    menu_type: 'tab',
                    title: '个人资料',
                    type: 'menu',
                },
                children: [
                    {
                        component: '',
                        name: 'routine/adminInfo/index',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '查看',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'routine/adminInfo/edit',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '编辑',
                            type: 'button',
                        },
                    },
                ],
            },
        ],
    },
    {
        component: '/src/views/backend/module/index.vue',
        name: 'moduleStore/moduleStore',
        path: '/admin/moduleStore',
        meta: {
            icon: 'el-icon-GoodsFilled',
            keepalive: 'moduleStore/moduleStore',
            menu_type: 'tab',
            title: '模块市场',
            type: 'menu',
        },
        children: [
            {
                component: '',
                name: 'moduleStore/moduleStore/index',
                path: '/admin/',
                meta: {
                    icon: '',
                    keepalive: 0,
                    menu_type: null,
                    title: '查看',
                    type: 'button',
                },
            },
            {
                component: '',
                name: 'moduleStore/moduleStore/install',
                path: '/admin/',
                meta: {
                    icon: '',
                    keepalive: 0,
                    menu_type: null,
                    title: '安装',
                    type: 'button',
                },
            },
            {
                component: '',
                name: 'moduleStore/moduleStore/changeState',
                path: '/admin/',
                meta: {
                    icon: '',
                    keepalive: 0,
                    menu_type: null,
                    title: '调整状态',
                    type: 'button',
                },
            },
            {
                component: '',
                name: 'moduleStore/moduleStore/uninstall',
                path: '/admin/',
                meta: {
                    icon: '',
                    keepalive: 0,
                    menu_type: null,
                    title: '卸载',
                    type: 'button',
                },
            },
            {
                component: '',
                name: 'moduleStore/moduleStore/update',
                path: '/admin/',
                meta: {
                    icon: '',
                    keepalive: 0,
                    menu_type: null,
                    title: '更新',
                    type: 'button',
                },
            },
        ],
    },
    {
        component: '',
        name: 'security',
        path: '/admin/security',
        meta: {
            icon: 'fa fa-shield',
            keepalive: 0,
            menu_type: null,
            title: '数据安全管理',
            type: 'menu_dir',
        },
        children: [
            {
                component: '/src/views/backend/security/dataRecycleLog/index.vue',
                name: 'security/dataRecycleLog',
                path: '/admin/security/dataRecycleLog',
                meta: {
                    icon: 'fa fa-database',
                    keepalive: 'security/dataRecycleLog',
                    menu_type: 'tab',
                    title: '数据回收站',
                    type: 'menu',
                },
                children: [
                    {
                        component: '',
                        name: 'security/dataRecycleLog/index',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '查看',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'security/dataRecycleLog/del',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '删除',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'security/dataRecycleLog/restore',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '还原',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'security/dataRecycleLog/info',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '查看详情',
                            type: 'button',
                        },
                    },
                ],
            },
            {
                component: '/src/views/backend/security/sensitiveDataLog/index.vue',
                name: 'security/sensitiveDataLog',
                path: '/admin/security/sensitiveDataLog',
                meta: {
                    icon: 'fa fa-expeditedssl',
                    keepalive: 'security/sensitiveDataLog',
                    menu_type: 'tab',
                    title: '敏感数据修改记录',
                    type: 'menu',
                },
                children: [
                    {
                        component: '',
                        name: 'security/sensitiveDataLog/index',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '查看',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'security/sensitiveDataLog/del',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '删除',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'security/sensitiveDataLog/rollback',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '回滚',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'security/sensitiveDataLog/info',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '查看详情',
                            type: 'button',
                        },
                    },
                ],
            },
            {
                component: '/src/views/backend/security/dataRecycle/index.vue',
                name: 'security/dataRecycle',
                path: '/admin/security/dataRecycle',
                meta: {
                    icon: 'fa fa-database',
                    keepalive: 'security/dataRecycle',
                    menu_type: 'tab',
                    title: '数据回收规则管理',
                    type: 'menu',
                },
                children: [
                    {
                        component: '',
                        name: 'security/dataRecycle/index',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '查看',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'security/dataRecycle/add',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '添加',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'security/dataRecycle/edit',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '编辑',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'security/dataRecycle/del',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '删除',
                            type: 'button',
                        },
                    },
                ],
            },
            {
                component: '/src/views/backend/security/sensitiveData/index.vue',
                name: 'security/sensitiveData',
                path: '/admin/security/sensitiveData',
                meta: {
                    icon: 'fa fa-expeditedssl',
                    keepalive: 'security/sensitiveData',
                    menu_type: 'tab',
                    title: '敏感字段规则管理',
                    type: 'menu',
                },
                children: [
                    {
                        component: '',
                        name: 'security/sensitiveData/index',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '查看',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'security/sensitiveData/add',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '添加',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'security/sensitiveData/edit',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '编辑',
                            type: 'button',
                        },
                    },
                    {
                        component: '',
                        name: 'security/sensitiveData/del',
                        path: '/admin/',
                        meta: {
                            icon: '',
                            keepalive: 0,
                            menu_type: null,
                            title: '删除',
                            type: 'button',
                        },
                    },
                ],
            },
        ],
    },
    {
        component: '/src/views/backend/crud/index.vue',
        name: 'crud/crud',
        path: '/admin/crud/crud',
        meta: {
            icon: 'fa fa-code',
            keepalive: 'crud/crud',
            menu_type: 'tab',
            title: 'CRUD代码生成',
            type: 'menu',
        },
        children: [
            {
                component: '',
                name: 'crud/crud/index',
                path: '/admin/',
                meta: {
                    icon: '',
                    keepalive: 0,
                    menu_type: null,
                    title: '查看',
                    type: 'button',
                },
            },
            {
                component: '',
                name: 'crud/crud/generate',
                path: '/admin/',
                meta: {
                    icon: '',
                    keepalive: 0,
                    menu_type: null,
                    title: '生成',
                    type: 'button',
                },
            },
            {
                component: '',
                name: 'crud/crud/delete',
                path: '/admin/',
                meta: {
                    icon: '',
                    keepalive: 0,
                    menu_type: null,
                    title: '删除',
                    type: 'button',
                },
            },
        ],
    },
]
